package org.springblade.mes.logistics.businessType.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springblade.core.tenant.mp.TenantEntity;

/**
 * 数据模型
 * @author qp
 */
@Data
@Accessors(chain = true)
@TableName("lgs_business_type")
public class BusinessType extends TenantEntity {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "类目编码")
	private String code;

	@ApiModelProperty(value = "类目名称")
	private String name;

	@ApiModelProperty(value = "出入库类型")
	private String type;

	@ApiModelProperty(value = "有效状态")
	@JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
	private Integer isEnable;

	@ApiModelProperty(value = "createUserName")
	private String createUserName;

	@ApiModelProperty(value = "updateUserName")
	private String updateUserName;

	@ApiModelProperty(value = "出入库类型,1:出,2:入")
	private String businessType;

}